package cn.wolfcode.luowowo.scenic.mapper;

import cn.wolfcode.luowowo.scenic.domain.Scenic;
import cn.wolfcode.luowowo.scenic.query.ScenicQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScenicMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Scenic record);

    Scenic selectByPrimaryKey(Long id);

    List<Scenic> selectAll();

    int updateByPrimaryKey(Scenic record);

    List<Scenic> selectByDestId(Long destId);


    List<Scenic> selectByScenicId(Long scenicId);

    List<Scenic> selectHotScenicByDestId(@Param("destId") Long destId, @Param("scenicHot") int scenicHot);

    List<Scenic> selectScenicByInterior(Long scenicId);



    List<Scenic> getTop3Scenic(Long destId);

    void updateReplyNum(@Param("count") Integer count, @Param("scenicDetailId") Long scenicDetailId);


    List<Scenic> selectByTagId(ScenicQuery qo);
}